const Mock = require('mockjs');

const data = Mock.mock({
    "list|7": [{
        img: '@image(100x100,@color)',
        title: '@ctitle(2,10)',
        name: '@cname',
        text: '@cword(10,100)',
        "num|100-1000": 0
    }]
})



module.exports = {
    devServer: {
        before(app) {
            app.get('/list', (req, res) => {
                res.send(data.list)
            })
        }
    }
}